layui.define(['table', 'industrialTalentsApi'], function(exports) {
    var industrialTalentsApi = layui.industrialTalentsApi;
    var table=layui.table;
    var view = {
        init:function(){
        },
        delBatch:function(){
            var data = Common.getMoreDataFromTable(table,"industrialTalentsTable");
            if(data==null){
                return ;
            }
            Common.openConfirm("确认要删除这些产业人才?",function(){
            var ids =Common.concatBatchId(data,"id");
            industrialTalentsApi.del(ids,function(){
                Common.info("删除成功");
                    dataReload();
                })
            })
        },
        card:function(){
            var data = Common.getTalentSum(table,"industrialTalentsTable");
            if(data==null){
                return ;
            }
            Common.openConfirm("确认要生成产业人才卡?",function(){
               var index = layer.load(1); //添加laoding,0-2两种方式
               var ids =Common.concatBatchId(data,"id");
                industrialTalentsApi.VolumeProductions(ids,function(){
                    layer.close(index);    //返回数据关闭loading
                    Common.info("生成成功");
                    // dataReload();
                })
            })
        }
    }
    exports('del',view);
	
});